home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1997 February / EnigmA AMIGA RUN 15 (1997)(G.R. Edizioni)(IT)[!][issue 1997-02][PLANET CD V].iso / enigma / earcd / emula / arosdv19.lha / AROS / include / dos / dos.h next >
C/C++ Source or Header  |  1996-10-24  |  4KB  |  163 lines

  1. #ifndef DOS_DOS_H
  2. #define DOS_DOS_H
  3.  
  4. #ifndef EXEC_TYPES_H
  5. #   include <exec/types.h>
  6. #endif
  7. #ifndef AROS_MACHINE_H
  8. #   include <aros/machine.h>
  9. #endif
  10.  
  11. #ifndef __typedef_BPTR
  12. #   define __typedef_BPTR
  13.     typedef AROS_BPTR_TYPE BPTR;
  14. #endif
  15.  
  16. #define DOSNAME "dos.library"
  17.  
  18. struct DateStamp
  19. {
  20.    LONG ds_Days;
  21.    LONG ds_Minute;
  22.    LONG ds_Tick;
  23. };
  24.  
  25. struct FileInfoBlock
  26. {
  27.     LONG fib_DiskKey;
  28.     LONG fib_DirEntryType;
  29.     UBYTE fib_FileName[108];
  30.     LONG fib_Protection;
  31.     LONG fib_EntryType;
  32.     LONG fib_Size;
  33.     LONG fib_NumBlocks;
  34.     struct DateStamp fib_Date;
  35.     UBYTE fib_Comment[80];
  36.     UWORD fib_OwnerUID;
  37.     UWORD fib_OwnerGID;
  38.     UBYTE fib_Reserved[32];
  39. };
  40.  
  41. #define DOSTRUE         (-1L)
  42.  
  43. #define MODE_OLDFILE        1005
  44. #define MODE_NEWFILE        1006
  45. #define MODE_READWRITE        1004
  46.  
  47. #define SHARED_LOCK        -2
  48. #define ACCESS_READ        SHARED_LOCK
  49. #define EXCLUSIVE_LOCK        -1
  50. #define ACCESS_WRITE        EXCLUSIVE_LOCK
  51.  
  52. #define OFFSET_BEGINNING    -1
  53. #define OFFSET_CURRENT        0
  54. #define OFFSET_END        1
  55.  
  56. #define RETURN_OK        0
  57. #define RETURN_WARN        5
  58. #define RETURN_ERROR        10
  59. #define RETURN_FAIL        20
  60.  
  61. #define SIGBREAKB_CTRL_C    12
  62. #define SIGBREAKB_CTRL_D    13
  63. #define SIGBREAKB_CTRL_E    14
  64. #define SIGBREAKB_CTRL_F    15
  65. #define SIGBREAKF_CTRL_C    0x1000
  66. #define SIGBREAKF_CTRL_D    0x2000
  67. #define SIGBREAKF_CTRL_E    0x4000
  68. #define SIGBREAKF_CTRL_F    0x8000
  69.  
  70. #define ITEM_EQUAL        -2
  71. #define ITEM_ERROR        -1
  72. #define ITEM_NOTHING        0
  73. #define ITEM_UNQUOTED        1
  74. #define ITEM_QUOTED        2
  75.  
  76. #define DOS_FILEHANDLE        0
  77. #define DOS_EXALLCONTROL    1
  78. #define DOS_FIB         2
  79. #define DOS_STDPKT        3
  80. #define DOS_CLI         4
  81. #define DOS_RDARGS        5
  82.  
  83. #define TICKS_PER_SECOND    50
  84.  
  85. #define FIBB_DELETE        0
  86. #define FIBB_EXECUTE        1
  87. #define FIBB_WRITE        2
  88. #define FIBB_READ        3
  89. #define FIBB_ARCHIVE        4
  90. #define FIBB_PURE        5
  91. #define FIBB_SCRIPT        6
  92. #define FIBB_GRP_DELETE     8
  93. #define FIBB_GRP_EXECUTE    9
  94. #define FIBB_GRP_WRITE        10
  95. #define FIBB_GRP_READ        11
  96. #define FIBB_OTR_DELETE     12
  97. #define FIBB_OTR_EXECUTE    13
  98. #define FIBB_OTR_WRITE        14
  99. #define FIBB_OTR_READ        15
  100. #define FIBF_DELETE        0x1
  101. #define FIBF_EXECUTE        0x2
  102. #define FIBF_WRITE        0x4
  103. #define FIBF_READ        0x8
  104. #define FIBF_ARCHIVE        0x10
  105. #define FIBF_PURE        0x20
  106. #define FIBF_SCRIPT        0x40
  107. #define FIBF_GRP_DELETE     0x100
  108. #define FIBF_GRP_EXECUTE    0x200
  109. #define FIBF_GRP_WRITE        0x400
  110. #define FIBF_GRP_READ        0x800
  111. #define FIBF_OTR_DELETE     0x1000
  112. #define FIBF_OTR_EXECUTE    0x2000
  113. #define FIBF_OTR_WRITE        0x4000
  114. #define FIBF_OTR_READ        0x8000
  115.  
  116. #define ERROR_NO_FREE_STORE        103
  117. #define ERROR_TASK_TABLE_FULL        105
  118. #define ERROR_BAD_TEMPLATE        114
  119. #define ERROR_BAD_NUMBER        115
  120. #define ERROR_REQUIRED_ARG_MISSING    116
  121. #define ERROR_KEY_NEEDS_ARG        117
  122. #define ERROR_TOO_MANY_ARGS        118
  123. #define ERROR_UNMATCHED_QUOTES        119
  124. #define ERROR_LINE_TOO_LONG        120
  125. #define ERROR_FILE_NOT_OBJECT        121
  126. #define ERROR_INVALID_RESIDENT_LIBRARY    122
  127. #define ERROR_NO_DEFAULT_DIR        201
  128. #define ERROR_OBJECT_IN_USE        202
  129. #define ERROR_OBJECT_EXISTS        203
  130. #define ERROR_DIR_NOT_FOUND        204
  131. #define ERROR_OBJECT_NOT_FOUND        205
  132. #define ERROR_BAD_STREAM_NAME        206
  133. #define ERROR_OBJECT_TOO_LARGE        207
  134. #define ERROR_ACTION_NOT_KNOWN        209
  135. #define ERROR_INVALID_COMPONENT_NAME    210
  136. #define ERROR_INVALID_LOCK        211
  137. #define ERROR_OBJECT_WRONG_TYPE     212
  138. #define ERROR_DISK_NOT_VALIDATED    213
  139. #define ERROR_DISK_WRITE_PROTECTED    214
  140. #define ERROR_RENAME_ACROSS_DEVICES    215
  141. #define ERROR_DIRECTORY_NOT_EMPTY    216
  142. #define ERROR_TOO_MANY_LEVELS        217
  143. #define ERROR_DEVICE_NOT_MOUNTED    218
  144. #define ERROR_SEEK_ERROR        219
  145. #define ERROR_COMMENT_TOO_BIG        220
  146. #define ERROR_DISK_FULL         221
  147. #define ERROR_DELETE_PROTECTED        222
  148. #define ERROR_WRITE_PROTECTED        223
  149. #define ERROR_READ_PROTECTED        224
  150. #define ERROR_NOT_A_DOS_DISK        225
  151. #define ERROR_NO_DISK            226
  152. #define ERROR_NO_MORE_ENTRIES        232
  153. #define ERROR_IS_SOFT_LINK        233
  154. #define ERROR_OBJECT_LINKED        234
  155. #define ERROR_BAD_HUNK            235
  156. #define ERROR_NOT_IMPLEMENTED        236
  157. #define ERROR_RECORD_NOT_LOCKED     240
  158. #define ERROR_LOCK_COLLISION        241
  159. #define ERROR_LOCK_TIMEOUT        242
  160. #define ERROR_UNLOCK_ERROR        243
  161.  
  162. #endif
  163.